package org.libraq.basic.mapper;

import org.libraq.basic.query.BaseQuery;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface BaseMapper<T> {
    List<T> findAll();
    T findById(Long id);
    List<T> findByQuery(BaseQuery query);
    Long findTotal(BaseQuery query);
    void delete(Long id);
    void save(T t);
    void update(T t);
    void patchDel(List<Long> ids);
}
